package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.Brand;
import com.weixing.mall.provider.model.domain.CategoryBrand;
import com.weixing.mall.provider.model.dto.BrandDto;
import com.weixing.mall.provider.model.query.BrandQuery;
import com.weixing.mall.provider.model.vo.BrandVo;

/**
 * <p>
 * 商品模块-商品品牌表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface IBrandService extends IService<Brand> {

    /**
     * @Description 保存商品品牌 <br/>
     * @author gjq
     * @date 2019/8/6 9:49
     * @param brandDto
     * @return void
     */
    void save(BrandDto brandDto);

    /**
     * @Description 分页条件模糊查询品牌 <br/>
     * @author gjq
     * @date 2019/8/6 10:33
     * @param page
     * @Param: brandQuery
     * @return com.github.pagehelper.PageInfo<com.weixing.mall.provider.model.vo.BrandVo>
     */
    IPage<BrandVo> selectOfPage(Page page, BrandQuery brandQuery);
    /**
     * @Description 批量删除 <br/>
     * @author gjq
     * @date 2019/8/8 15:59
     * @param ids
     * @return void
     */
    int deleteAll(int[] ids);

    CategoryBrand selectBrand(Integer brandId);
}
